//
//  ZQDemoController.swift
//  Timor微博
//
//  Created by 周周旗 on 2019/2/27.
//  Copyright © 2019 ZQ. All rights reserved.
//

import UIKit

class ZQDemoController: ZQBaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(nextToVC), isBackItem: false)
        // Do any additional setup after loading the view.
    }
    
    @objc private func nextToVC() {
        let vc = ZQDemoController.init()
        vc.navItem.title = String(children.count) + "页面"
        navigationController?.pushViewController(vc, animated: true)
    }
    
}
